File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 109
109
lineHeight : "normal"
110
110
} ,
111
111
onClick : function ( ) {
112
- var authorizeButton = document . getElementById ( 'authorize' ) ;
113
112
if ( abp . auth . getToken ( ) ) {
114
113
abp . swagger . logout ( ) ;
115
- authorizeButton . innerText = getAuthorizeButtonText ( ) ;
116
- authorizeButton . className = 'btn ' + getAuthorizeButtonCssClass ( ) ;
114
+ location . reload ( ) ;
117
115
} else {
118
116
abp . swagger . openAuthDialog ( function ( ) {
119
- authorizeButton . innerText = getAuthorizeButtonText ( ) ;
120
- authorizeButton . className = 'btn ' + getAuthorizeButtonCssClass ( ) ;
121
- abp . swagger . closeAuthDialog ( ) ;
117
+ location . reload ( ) ;
122
118
} ) ;
123
119
}
124
- location . reload ( ) ;
125
120
}
126
121
} , getAuthorizeButtonText ( ) ) ;
127
122
}
You can’t perform that action at this time.
0 commit comments