pull/250/head
Henrique Dias 2017-09-11 09:46:17 +01:00
parent 879ad7b518
commit f658394dd7
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
3 changed files with 9 additions and 3 deletions

View File

@ -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 () {

View File

@ -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)
}

View File

@ -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