mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Change delete icon in tables
This commit is contained in:
+12
-8
@@ -11126,25 +11126,29 @@ speechSynthesis.getVoices();
|
|||||||
this.addGameLogEntry(gameLog, this.lastLocation.location);
|
this.addGameLogEntry(gameLog, this.lastLocation.location);
|
||||||
};
|
};
|
||||||
|
|
||||||
$app.methods.deleteGameLogEntry = function (row) {
|
$app.methods.deleteGameLogEntryPrompt = function (row) {
|
||||||
this.$confirm('Continue? Delete Log', 'Confirm', {
|
this.$confirm('Continue? Delete Log', 'Confirm', {
|
||||||
confirmButtonText: 'Confirm',
|
confirmButtonText: 'Confirm',
|
||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: 'Cancel',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
callback: (action) => {
|
callback: (action) => {
|
||||||
if (action === 'confirm') {
|
if (action === 'confirm') {
|
||||||
removeFromArray(this.gameLogTable.data, row);
|
this.deleteGameLogEntry(row);
|
||||||
database.deleteGameLogEntry(row);
|
|
||||||
console.log(row);
|
|
||||||
database.getGamelogDatabase().then((data) => {
|
|
||||||
this.gameLogSessionTable = data;
|
|
||||||
this.updateSharedFeed(true);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$app.methods.deleteGameLogEntry = function (row) {
|
||||||
|
removeFromArray(this.gameLogTable.data, row);
|
||||||
|
database.deleteGameLogEntry(row);
|
||||||
|
console.log(row);
|
||||||
|
database.getGamelogDatabase().then((data) => {
|
||||||
|
this.gameLogSessionTable = data;
|
||||||
|
this.updateSharedFeed(true);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
$app.data.lastLocationDestination = '';
|
$app.data.lastLocationDestination = '';
|
||||||
$app.data.lastLocationDestinationTime = 0;
|
$app.data.lastLocationDestinationTime = 0;
|
||||||
$app.data.lastVideoUrl = '';
|
$app.data.lastVideoUrl = '';
|
||||||
|
|||||||
@@ -21,4 +21,4 @@ mixin friendLogTab()
|
|||||||
span ({{ scope.row.previousTrustLevel }} #[i.el-icon-right] {{ scope.row.trustLevel }})
|
span ({{ scope.row.previousTrustLevel }} #[i.el-icon-right] {{ scope.row.trustLevel }})
|
||||||
el-table-column(:label="$t('table.friendLog.action')" width="80" align="right")
|
el-table-column(:label="$t('table.friendLog.action')" width="80" align="right")
|
||||||
template(v-once #default="scope")
|
template(v-once #default="scope")
|
||||||
el-button(type="text" icon="el-icon-close" size="mini" @click="deleteFriendLog(scope.row)")
|
el-button(type="text" icon="el-icon-delete" size="mini" @click="deleteFriendLog(scope.row)")
|
||||||
|
|||||||
@@ -49,6 +49,6 @@ mixin gameLogTab()
|
|||||||
span.x-link(v-else v-text="scope.row.data")
|
span.x-link(v-else v-text="scope.row.data")
|
||||||
el-table-column(:label="$t('table.gameLog.action')" width="80" align="right")
|
el-table-column(:label="$t('table.gameLog.action')" width="80" align="right")
|
||||||
template(v-once #default="scope")
|
template(v-once #default="scope")
|
||||||
el-button(v-if="scope.row.type !== 'OnPlayerJoined' && scope.row.type !== 'OnPlayerLeft' && scope.row.type !== 'Location' && scope.row.type !== 'PortalSpawn'" type="text" icon="el-icon-close" size="mini" @click="deleteGameLogEntry(scope.row)")
|
el-button(v-if="scope.row.type !== 'OnPlayerJoined' && scope.row.type !== 'OnPlayerLeft' && scope.row.type !== 'Location' && scope.row.type !== 'PortalSpawn'" type="text" icon="el-icon-delete" size="mini" @click="deleteGameLogEntryPrompt(scope.row)")
|
||||||
el-tooltip(placement="top" content="Open Instance Info" :disabled="hideTooltips")
|
el-tooltip(placement="top" content="Open Instance Info" :disabled="hideTooltips")
|
||||||
el-button(v-if="scope.row.type === 'Location'" type="text" icon="el-icon-tickets" size="mini" @click="showPreviousInstanceInfoDialog(scope.row.location)")
|
el-button(v-if="scope.row.type === 'Location'" type="text" icon="el-icon-tickets" size="mini" @click="showPreviousInstanceInfoDialog(scope.row.location)")
|
||||||
|
|||||||
Reference in New Issue
Block a user