Former-commit-id: 8578bf0b790ea4b8b5c5da4876fbccd2ead42d3c [formerly b67d35502fb0c9a3c57226b812dd2b869c5fcae1] [formerly 506eb279c974a86b232be57f87a11ec283b3b742 [formerly f658394dd7]]
Former-commit-id: e9565ce6a4ef229943f132fb6e05c5ec853447ed [formerly d0b2c24f6df2a74c403ded829cfd0746659e7d5f]
Former-commit-id: 2f4afe92081915821dd5b2fe745faf1492bdcabf
pull/726/head
Henrique Dias 2017-09-11 09:46:17 +01:00
parent 624d61930c
commit 9a829fd594
3 changed files with 9 additions and 3 deletions

View File

@ -31,7 +31,7 @@ Vue.prototype.$showError = function (error) {
type: 'error', type: 'error',
timeout: null, timeout: null,
buttons: [ 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') window.open('https://github.com/hacdias/filemanager/issues/new')
}), }),
Noty.button(i18n.t('buttons.close'), '', function () { Noty.button(i18n.t('buttons.close'), '', function () {

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="dashboard"> <div class="dashboard">
<form class="card" @submit.prevent="saveStaticGen"> <form class="card" v-if="staticGen.length" @submit.prevent="saveStaticGen">
<div class="card-title"> <div class="card-title">
<h2>{{ capitalize($store.state.staticGen) }}</h2> <h2>{{ capitalize($store.state.staticGen) }}</h2>
</div> </div>
@ -80,7 +80,6 @@ export default {
created () { created () {
getSettings() getSettings()
.then(settings => { .then(settings => {
console.log(settings)
if (this.$store.state.staticGen.length > 0) { if (this.$store.state.staticGen.length > 0) {
this.parseStaticGen(settings.staticGen) 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 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. // Updates the CSS and locale.
if which == "partial" { if which == "partial" {
c.User.CSS = u.CSS c.User.CSS = u.CSS