[auth] renamed AuthView to AuthButtonView
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
SwaggerUi.Views.AuthView = Backbone.View.extend({
|
||||
SwaggerUi.Views.AuthButtonView = Backbone.View.extend({
|
||||
events: {
|
||||
'click .authorize__btn': 'authorizeBtnClick'
|
||||
},
|
||||
@@ -93,7 +93,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
|
||||
authsModel = { auths: this.model.securityDefinitions };
|
||||
|
||||
authsModel.isLogout = !_.isEmpty(window.swaggerUi.api.clientAuthorizations.authz);
|
||||
this.authView = new SwaggerUi.Views.AuthView({model: authsModel, router: this.router});
|
||||
this.authView = new SwaggerUi.Views.AuthButtonView({model: authsModel, router: this.router});
|
||||
this.$('.authorize-wrapper').append(this.authView.render().el);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user