add storage buckets route (#82)

This commit is contained in:
lisbet-alvarez authored and GitHub committed 2023-02-28 13:20:31 -08:00
1 parent 0386e9fc11
commit 4631906508
9 files changed
+52 -1

No files matched your search

@@ -214,6 +214,9 @@ session-recordings:
recorded-sessions:
title: Recorded Session
title_plural: Recorded Sessions
storage-bucket:
title: Storage Bucket
title_plural: Storage Buckets
project:
title: Project
title_plural: Projects
+1
View File
@@ -138,6 +138,7 @@ Router.map(function () {
{ path: ':session_recording_id' },
function () {}
);
this.route('storage-buckets', function() {});
});
});
});
@@ -0,0 +1,19 @@
import Route from '@ember/routing/route';
export default class ScopesScopeSessionRecordingsStorageBucketsRoute extends Route {
// =services
// TODO: store, can, and router services
// =methods
/**
* Loads all storage buckets under global and org scopes.
* @returns {Promise[StorageBucketModel]}
*/
// TODO: async model hook
// =actions
// TODO: save, cancel, and delete actions
}
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';
export default class ScopesScopeSessionRecordingsStorageBucketsIndexRoute extends Route {}
@@ -1,2 +1,2 @@
{{page-title (t 'resources.session-recording.title_plural')}}
{{page-title (t 'resources.session-recordings.title_plural')}}
{{outlet}}
@@ -0,0 +1,3 @@
{{page-title (t 'resources.session-recordings.storage-bucket.title_plural')}}
{{outlet}}
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'admin/tests/helpers';
module('Unit | Route | scopes/scope/session-recordings/storage-buckets', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope/session-recordings/storage-buckets');
assert.ok(route);
});
});
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'admin/tests/helpers';
module('Unit | Route | scopes/scope/session-recordings/storage-buckets/index', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
let route = this.owner.lookup('route:scopes/scope/session-recordings/storage-buckets/index');
assert.ok(route);
});
});