Skip to content

Commit afdf0fc

Browse files
committed
refactor: removed old Android activity view
1 parent 035d4cc commit afdf0fc

File tree

3 files changed

+2
-175
lines changed

3 files changed

+2
-175
lines changed

src/components/Header.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export default {
8787
mounted: async function() {
8888
const buckets = await this.$aw.getBuckets();
8989
const types_by_host = {};
90+
91+
// TODO: Change to use same bucket detection logic as get_buckets/set_available in store/modules/activity.ts
9092
_.each(buckets, v => {
9193
types_by_host[v.hostname] = types_by_host[v.hostname] || {};
9294
// The '&& true;' is just to typecoerce into booleans
@@ -111,13 +113,6 @@ export default {
111113
name: `${hostname} (Android)`,
112114
hostname: hostname,
113115
type: 'android',
114-
pathUrl: '/activity/android',
115-
icon: 'mobile',
116-
});
117-
this.activityViews.push({
118-
name: `${hostname} (Android, new)`,
119-
hostname: hostname,
120-
type: 'android',
121116
pathUrl: `/activity/${hostname}`,
122117
icon: 'mobile',
123118
});

src/route.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const ActivitySummary = () => import('./views/activity/ActivitySummary.vue');
99
const ActivityWindow = () => import('./views/activity/ActivityWindow.vue');
1010
const ActivityBrowser = () => import('./views/activity/ActivityBrowser.vue');
1111
const ActivityEditor = () => import('./views/activity/ActivityEditor.vue');
12-
const ActivityAndroid = () => import('./views/activity/ActivityAndroid.vue');
1312

1413
const Buckets = () => import('./views/Buckets.vue');
1514
const Bucket = () => import('./views/Bucket.vue');
@@ -25,8 +24,6 @@ Vue.use(VueRouter);
2524
const router = new VueRouter({
2625
routes: [
2726
{ path: '/', component: Home },
28-
// Must be before general activity view such that it matches first
29-
{ path: '/activity/android/:host/:date?', component: ActivityAndroid, props: true },
3027
{
3128
path: '/activity/:host/:periodLength?/:date?',
3229
component: Activity,

src/views/activity/ActivityAndroid.vue

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)