mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-31 09:35:16 +01:00
Merge pull request #719 from h3poteto/add/settings
Add settings button on header menu
This commit is contained in:
commit
09f063ca17
@ -2,6 +2,9 @@
|
||||
"side_menu": {
|
||||
"direct": "Direct messages"
|
||||
},
|
||||
"header_menu": {
|
||||
"settings": "Settings"
|
||||
},
|
||||
"settings": {
|
||||
"timeline": {
|
||||
"title": "Timeline",
|
||||
|
@ -71,7 +71,8 @@
|
||||
"apply": "Apply"
|
||||
},
|
||||
"new_toot": "Toot",
|
||||
"reload": "Reload"
|
||||
"reload": "Reload",
|
||||
"settings": "Settings"
|
||||
},
|
||||
"settings": {
|
||||
"title": "Settings",
|
||||
|
@ -2,6 +2,9 @@
|
||||
"side_menu": {
|
||||
"direct": "Direct messages"
|
||||
},
|
||||
"header_menu": {
|
||||
"settings": "Settings"
|
||||
},
|
||||
"settings": {
|
||||
"timeline": {
|
||||
"title": "Timeline",
|
||||
|
@ -71,7 +71,8 @@
|
||||
"apply": "適用"
|
||||
},
|
||||
"new_toot": "トゥート",
|
||||
"reload": "再読み込み"
|
||||
"reload": "再読み込み",
|
||||
"settings": "設定"
|
||||
},
|
||||
"settings": {
|
||||
"title": "設定",
|
||||
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"side_menu": {
|
||||
"direct": "Direct messages"
|
||||
}
|
||||
}
|
@ -2,6 +2,9 @@
|
||||
"side_menu": {
|
||||
"direct": "Direct messages"
|
||||
},
|
||||
"header_menu": {
|
||||
"settings": "Settings"
|
||||
},
|
||||
"settings": {
|
||||
"timeline": {
|
||||
"title": "Timeline",
|
||||
|
@ -2,6 +2,9 @@
|
||||
"side_menu": {
|
||||
"direct": "Direct messages"
|
||||
},
|
||||
"header_menu": {
|
||||
"settings": "Settings"
|
||||
},
|
||||
"settings": {
|
||||
"timeline": {
|
||||
"title": "Timeline",
|
||||
|
@ -36,6 +36,9 @@
|
||||
<icon name="sliders-h"></icon>
|
||||
</el-button>
|
||||
</el-popover>
|
||||
<el-button type="text" class="action" @click="settings" :title="$t('header_menu.settings')">
|
||||
<icon name="cog" scale="1.1"></icon>
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -67,6 +70,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
id () {
|
||||
return this.$route.params.id
|
||||
},
|
||||
channelName () {
|
||||
switch (this.$route.name) {
|
||||
case 'home':
|
||||
@ -220,6 +226,10 @@ export default {
|
||||
default:
|
||||
return false
|
||||
}
|
||||
},
|
||||
settings () {
|
||||
const url = `/${this.id()}/settings`
|
||||
this.$router.push(url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user