Skip to content

Commit

Permalink
add hide_user_status_button option
Browse files Browse the repository at this point in the history
  • Loading branch information
juzeon committed Sep 14, 2024
1 parent fcb8c5c commit f683605
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type Config struct {
DisableNoSearchLoader bool `json:"disable_no_search_loader"`
BypassServer string `json:"bypass_server"`
DisableSummaryTitleGeneration bool `json:"disable_summary_title_generation"`
HideUserStatusButton bool `json:"hide_user_status_button"`

Migration Migration `json:"migration"`
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function generateTitle() {
</v-btn>
</template>
<template #right-top-prepend>
<user-status-button></user-status-button>
<user-status-button v-if="!config.hide_user_status_button"></user-status-button>
</template>
<template #default>
<workspace-nav v-if="!loading" :is-asking="isAsking" v-model="navDrawer"
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/pages/SettingsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ function onRevokeReplyCountChanged(v: string) {
</template>
</v-tooltip>
<theme-text-field v-model:theme-color="config.theme_color"></theme-text-field>
<v-tooltip text="User Status Button will show your login status of bing.com on the top bar"
location="bottom">
<template #activator="{props}">
<v-switch v-bind="props" color="primary" label="Hide User Status Button"
v-model="config.hide_user_status_button"></v-switch>
</template>
</v-tooltip>
</v-card-text>
</v-card>
<v-card title="Accessibility" class="my-3">
Expand Down
2 changes: 2 additions & 0 deletions frontend/wailsjs/go/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export namespace main {
disable_no_search_loader: boolean;
bypass_server: string;
disable_summary_title_generation: boolean;
hide_user_status_button: boolean;
migration: Migration;

static createFrom(source: any = {}) {
Expand Down Expand Up @@ -272,6 +273,7 @@ export namespace main {
this.disable_no_search_loader = source["disable_no_search_loader"];
this.bypass_server = source["bypass_server"];
this.disable_summary_title_generation = source["disable_summary_title_generation"];
this.hide_user_status_button = source["hide_user_status_button"];
this.migration = this.convertValues(source["migration"], Migration);
}

Expand Down

0 comments on commit f683605

Please sign in to comment.