Skip to content

Commit

Permalink
Move UI button into the menu (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkppr authored Feb 6, 2024
1 parent 3b78ae0 commit 11717ab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion timesketch/frontend-ng/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ limitations under the License.
<span style="font-size: 1.2em">timesketch</span>

<v-spacer></v-spacer>
<v-btn small depressed v-on:click="switchUI"> Use the old UI </v-btn>
<v-avatar color="grey lighten-1" size="25" class="ml-3">
<span class="white--text">{{ currentUser | initialLetter }}</span>
</v-avatar>
Expand All @@ -48,6 +47,14 @@ limitations under the License.
<v-list-item-title>Toggle theme</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item v-on:click="switchUI">
<v-list-item-icon>
<v-icon>mdi-view-dashboard-outline</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>Use the old UI</v-list-item-title>
</v-list-item-content>
</v-list-item>

<a href="/logout/" style="text-decoration: none; color: inherit">
<v-list-item>
Expand Down
10 changes: 9 additions & 1 deletion timesketch/frontend-ng/src/views/Sketch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ limitations under the License.
</div>
</v-hover>
<v-spacer></v-spacer>
<v-btn small rounded depressed v-on:click="switchUI"> Use the old UI </v-btn>

<!-- Sharing dialog -->
<v-dialog v-model="shareDialog" width="500">
Expand Down Expand Up @@ -193,6 +192,15 @@ limitations under the License.
</v-list-item-content>
</v-list-item>

<v-list-item v-on:click="switchUI">
<v-list-item-icon>
<v-icon>mdi-view-dashboard-outline</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>Use the old UI</v-list-item-title>
</v-list-item-content>
</v-list-item>

<a href="/logout/" style="text-decoration: none; color: inherit">
<v-list-item>
<v-list-item-icon>
Expand Down

0 comments on commit 11717ab

Please sign in to comment.