mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Change delete icon in tables
This commit is contained in:
@@ -11126,25 +11126,29 @@ speechSynthesis.getVoices();
|
||||
this.addGameLogEntry(gameLog, this.lastLocation.location);
|
||||
};
|
||||
|
||||
$app.methods.deleteGameLogEntry = function (row) {
|
||||
$app.methods.deleteGameLogEntryPrompt = function (row) {
|
||||
this.$confirm('Continue? Delete Log', 'Confirm', {
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'info',
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
removeFromArray(this.gameLogTable.data, row);
|
||||
database.deleteGameLogEntry(row);
|
||||
console.log(row);
|
||||
database.getGamelogDatabase().then((data) => {
|
||||
this.gameLogSessionTable = data;
|
||||
this.updateSharedFeed(true);
|
||||
});
|
||||
this.deleteGameLogEntry(row);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
$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.lastLocationDestinationTime = 0;
|
||||
$app.data.lastVideoUrl = '';
|
||||
|
||||
Reference in New Issue
Block a user