mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 08:55:56 +02:00
[Client] Implement copy file url to clipboard
This commit is contained in:
@@ -35,10 +35,13 @@
|
||||
</ul>
|
||||
</mk-contextmenu>
|
||||
<script>
|
||||
const copyToClipboard = require('../../../common/scripts/copy-to-clipboard');
|
||||
|
||||
this.mixin('api');
|
||||
this.mixin('i');
|
||||
this.mixin('update-avatar');
|
||||
this.mixin('update-banner');
|
||||
this.mixin('dialog');
|
||||
this.mixin('input-dialog');
|
||||
this.mixin('NotImplementedException');
|
||||
|
||||
@@ -68,7 +71,12 @@
|
||||
};
|
||||
|
||||
this.copyUrl = () => {
|
||||
this.NotImplementedException();
|
||||
copyToClipboard(this.file.url);
|
||||
this.refs.ctx.close();
|
||||
this.dialog('<i class="fa fa-check"></i>コピー完了',
|
||||
'ファイルのURLをクリップボードにコピーしました', [{
|
||||
text: 'わー'
|
||||
}]);
|
||||
};
|
||||
|
||||
this.download = () => {
|
||||
|
||||
Reference in New Issue
Block a user