ドライブの管理画面でファイルのオリジナルURLを表示するように

This commit is contained in:
syuilo 2019-01-08 17:45:16 +09:00
parent d775e19059
commit 02a27a8b12
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 2 additions and 1 deletions

View file

@ -39,6 +39,7 @@
</div> </div>
</div> </div>
<div v-show="file._open"> <div v-show="file._open">
<ui-input readonly :value="file.url"></ui-input>
<ui-horizon-group> <ui-horizon-group>
<ui-button @click="toggleSensitive(file)" v-if="file.isSensitive"><fa :icon="faEye"/> {{ $t('unmark-as-sensitive') }}</ui-button> <ui-button @click="toggleSensitive(file)" v-if="file.isSensitive"><fa :icon="faEye"/> {{ $t('unmark-as-sensitive') }}</ui-button>
<ui-button @click="toggleSensitive(file)" v-else><fa :icon="faEyeSlash"/> {{ $t('mark-as-sensitive') }}</ui-button> <ui-button @click="toggleSensitive(file)" v-else><fa :icon="faEyeSlash"/> {{ $t('mark-as-sensitive') }}</ui-button>

View file

@ -77,5 +77,5 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
skip: ps.offset skip: ps.offset
}); });
res(await packMany(files, { detail: true, withUser: true })); res(await packMany(files, { detail: true, withUser: true, self: true }));
})); }));