diff options
| author | Pitu <[email protected]> | 2018-09-17 04:38:25 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2018-09-17 04:38:25 -0300 |
| commit | c2c6e99878853fafdbd5e708c3163921f8529ae1 (patch) | |
| tree | 8313268655c19bc74497172ee1d0642a52e93984 /src/site/views/dashboard | |
| parent | This route should handle more stuff, so it does now (diff) | |
| download | host.fuwn.me-c2c6e99878853fafdbd5e708c3163921f8529ae1.tar.xz host.fuwn.me-c2c6e99878853fafdbd5e708c3163921f8529ae1.zip | |
Public albums wooo!
Diffstat (limited to 'src/site/views/dashboard')
| -rw-r--r-- | src/site/views/dashboard/Albums.vue | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/site/views/dashboard/Albums.vue b/src/site/views/dashboard/Albums.vue index 2c7984c..57cd01f 100644 --- a/src/site/views/dashboard/Albums.vue +++ b/src/site/views/dashboard/Albums.vue @@ -211,7 +211,7 @@ <b-table-column field="identifier" label="Link" centered> - <a :href="props.row.identifier" + <a :href="`${config.URL}/a/${props.row.identifier}`" target="_blank"> {{ props.row.identifier }} </a> @@ -235,10 +235,11 @@ <b-switch :value="props.row.enabled "/> </b-table-column> - <b-table-column field="createdAt" - label="Created at" + <b-table-column field="actions" + label="Actions" centered> - {{ props.row.createdAt }} + <button class="button is-danger" + @click="deleteLink(props.row.identifier)">Delete link</button> </b-table-column> </template> <template slot="empty"> @@ -251,11 +252,11 @@ </template> <template slot="footer"> <div class="has-text-right"> - <p class="control"> - <button :class="{ 'is-loading': album.isCreatingLink }" - class="button is-primary" - @click="createLink(album)">Create new link</button> - </p> + <button :class="{ 'is-loading': album.isCreatingLink }" + class="button is-primary" + style="float: left" + @click="createLink(album)">Create new link</button> + {{ album.links.length }} / {{ config.maxLinksPerAlbum }} links created </div> </template> </b-table> @@ -285,6 +286,11 @@ export default { newAlbumName: null }; }, + computed: { + config() { + return this.$store.state.config; + } + }, metaInfo() { return { title: 'Uploads' }; }, |