diff --git a/src/app/component/peer-menu/peer-menu.component.html b/src/app/component/peer-menu/peer-menu.component.html index be6f6131..5ff9d38c 100644 --- a/src/app/component/peer-menu/peer-menu.component.html +++ b/src/app/component/peer-menu/peer-menu.component.html @@ -22,11 +22,11 @@ {{ networkService.peer.userId }} - + {{ isCopied ? 'クリップボードにコピーしました。' : '' }} - ??? + ??? @@ -38,7 +38,7 @@ {{ networkService.peer.roomName }}/{{ networkService.peer.roomId }} - + {{ isRoomNameCopied ? 'クリップボードにコピーしました。' : '' }} @@ -56,8 +56,9 @@
{{ maskedPassword }}
- + {{ isPasswordCopied ? 'クリップボードにコピーしました。' : '' }} +
@@ -75,7 +76,7 @@
- + diff --git a/src/app/component/peer-menu/peer-menu.component.ts b/src/app/component/peer-menu/peer-menu.component.ts index 4776e32b..8aedf725 100644 --- a/src/app/component/peer-menu/peer-menu.component.ts +++ b/src/app/component/peer-menu/peer-menu.component.ts @@ -215,7 +215,19 @@ export class PeerMenuComponent implements OnInit, OnDestroy { navigator.clipboard.writeText(this.networkService.peer.password); this.isPasswordCopied = true; clearTimeout(this._timeOutId3); - this._timeOutId2 = setTimeout(() => { + this._timeOutId3 = setTimeout(() => { + this.isPasswordCopied = false; + }, 1000); + this.isPasswordOpen = false; + } + } + + copyRoomInfo() { + if (navigator.clipboard) { + navigator.clipboard.writeText('ルーム名:' + this.networkService.peer.roomName + '/' + this.networkService.peer.roomId + ' パスワード:' + this.networkService.peer.password); + this.isPasswordCopied = true; + clearTimeout(this._timeOutId3); + this._timeOutId3 = setTimeout(() => { this.isPasswordCopied = false; }, 1000); this.isPasswordOpen = false; diff --git a/src/index.html b/src/index.html index 3597a53b..d5ce3527 100644 --- a/src/index.html +++ b/src/index.html @@ -2,7 +2,7 @@ - Udonarium with Fly 1.8.10d (Powered by Udonarium 1.15.2) + Udonarium with Fly 1.8.10e (Powered by Udonarium 1.15.2)