fix #241
							parent
							
								
									879ad7b518
								
							
						
					
					
						commit
						f658394dd7
					
				|  | @ -31,7 +31,7 @@ Vue.prototype.$showError = function (error) { | |||
|     type: 'error', | ||||
|     timeout: null, | ||||
|     buttons: [ | ||||
|       Noty.button(i18n.t('buttons.reportIssue'), 'cancel', function () { | ||||
|       Noty.button(i18n.t('buttons.reportIssue'), '', function () { | ||||
|         window.open('https://github.com/hacdias/filemanager/issues/new') | ||||
|       }), | ||||
|       Noty.button(i18n.t('buttons.close'), '', function () { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| <template> | ||||
|   <div class="dashboard"> | ||||
|     <form class="card" @submit.prevent="saveStaticGen"> | ||||
|     <form class="card" v-if="staticGen.length" @submit.prevent="saveStaticGen"> | ||||
|       <div class="card-title"> | ||||
|         <h2>{{ capitalize($store.state.staticGen) }}</h2> | ||||
|       </div> | ||||
|  | @ -80,7 +80,6 @@ export default { | |||
|   created () { | ||||
|     getSettings() | ||||
|       .then(settings => { | ||||
|         console.log(settings) | ||||
|         if (this.$store.state.staticGen.length > 0) { | ||||
|           this.parseStaticGen(settings.staticGen) | ||||
|         } | ||||
|  |  | |||
|  | @ -268,6 +268,13 @@ func usersPutHandler(c *fm.Context, w http.ResponseWriter, r *http.Request) (int | |||
| 		return http.StatusBadRequest, err | ||||
| 	} | ||||
| 
 | ||||
| 	// If we're updating the default user. Only for NoAuth
 | ||||
| 	// implementations. Used to change the viewMode.
 | ||||
| 	if id == 0 && c.NoAuth { | ||||
| 		c.DefaultUser.ViewMode = u.ViewMode | ||||
| 		return http.StatusOK, nil | ||||
| 	} | ||||
| 
 | ||||
| 	// Updates the CSS and locale.
 | ||||
| 	if which == "partial" { | ||||
| 		c.User.CSS = u.CSS | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Henrique Dias
						Henrique Dias