mirror of
https://github.com/go-shiori/shiori.git
synced 2024-09-20 23:16:12 +08:00
Add option for set default archival method
This commit is contained in:
parent
7bdebf3108
commit
fde91e5edd
File diff suppressed because one or more lines are too long
|
@ -107,12 +107,14 @@
|
|||
var opts = JSON.parse(localStorage.getItem("shiori-setting")) || {},
|
||||
showId = (typeof opts.showId === "boolean") ? opts.showId : false,
|
||||
listMode = (typeof opts.listMode === "boolean") ? opts.listMode : false,
|
||||
nightMode = (typeof opts.nightMode === "boolean") ? opts.nightMode : false;
|
||||
nightMode = (typeof opts.nightMode === "boolean") ? opts.nightMode : false,
|
||||
useArchive = (typeof opts.useArchive === "boolean") ? opts.useArchive : false;
|
||||
|
||||
this.displayOptions = {
|
||||
showId: showId,
|
||||
listMode: listMode,
|
||||
nightMode: nightMode,
|
||||
useArchive: useArchive,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
|
|
@ -7,6 +7,7 @@ export default {
|
|||
showId: false,
|
||||
listMode: false,
|
||||
nightMode: false,
|
||||
useArchive: false,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -266,7 +266,8 @@ export default {
|
|||
}, {
|
||||
name: "createArchive",
|
||||
label: "Create archive",
|
||||
type: "check"
|
||||
type: "check",
|
||||
value: this.displayOptions.useArchive,
|
||||
}],
|
||||
mainText: "OK",
|
||||
secondText: "Cancel",
|
||||
|
@ -499,7 +500,8 @@ export default {
|
|||
fields: [{
|
||||
name: "createArchive",
|
||||
label: "Update archive as well",
|
||||
type: "check"
|
||||
type: "check",
|
||||
value: this.displayOptions.useArchive,
|
||||
}],
|
||||
mainText: "Yes",
|
||||
secondText: "No",
|
||||
|
|
|
@ -16,6 +16,10 @@ var template = `
|
|||
<input type="checkbox" v-model="displayOptions.nightMode" @change="saveSetting">
|
||||
Use dark theme
|
||||
</label>
|
||||
<label>
|
||||
<input type="checkbox" v-model="displayOptions.useArchive" @change="saveSetting">
|
||||
Create archive by default
|
||||
</label>
|
||||
</details>
|
||||
<details open class="setting-group" id="setting-accounts">
|
||||
<summary>Accounts</summary>
|
||||
|
@ -62,6 +66,7 @@ export default {
|
|||
showId: this.displayOptions.showId,
|
||||
listMode: this.displayOptions.listMode,
|
||||
nightMode: this.displayOptions.nightMode,
|
||||
useArchive: this.displayOptions.useArchive,
|
||||
});
|
||||
},
|
||||
loadAccounts() {
|
||||
|
|
|
@ -584,10 +584,13 @@ body {
|
|||
#setting-display {
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
padding-bottom: 8px;
|
||||
|
||||
summary {
|
||||
margin-bottom: 8px;
|
||||
&[open] {
|
||||
padding-bottom: 8px;
|
||||
|
||||
summary {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
|
|
Loading…
Reference in a new issue