0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Popup warning when opening a trashed google brew

This commit is contained in:
Trevor Buckner
2021-03-20 23:33:22 -04:00
parent dd35f101fe
commit a1dbf0f2e5
4 changed files with 28 additions and 25 deletions

View File

@@ -244,7 +244,7 @@ GoogleActions = {
const obj = await drive.files.get({
fileId : id,
fields : 'properties, createdTime, modifiedTime, description'
fields : 'properties, createdTime, modifiedTime, description, trashed'
})
.catch((err)=>{
console.log('Error loading from Google');
@@ -291,6 +291,7 @@ GoogleActions = {
systems : obj.data.properties.systems ? obj.data.properties.systems.split(',') : [],
authors : [],
published : obj.data.properties.published ? obj.data.properties.published == 'true' : false,
trashed : obj.data.trashed,
createdAt : obj.data.createdTime,
updatedAt : obj.data.modifiedTime,