From 385144451b8efbf075d2c52cd531ce7db7a3b107 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 7 Jun 2018 19:26:28 -0400 Subject: [PATCH] renamed hideInAutocomplete label to archived --- .../0098__rename_hideInAutocomplete.sql | 1 + src/public/javascripts/entities/note_short.js | 4 +-- src/scripts/Reddit Importer.tar | Bin 10752 -> 10742 bytes src/services/app_info.js | 2 +- src/services/labels.js | 2 +- src/services/note_cache.js | 24 +++++++++--------- 6 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 db/migrations/0098__rename_hideInAutocomplete.sql diff --git a/db/migrations/0098__rename_hideInAutocomplete.sql b/db/migrations/0098__rename_hideInAutocomplete.sql new file mode 100644 index 000000000..a656e1f70 --- /dev/null +++ b/db/migrations/0098__rename_hideInAutocomplete.sql @@ -0,0 +1 @@ +UPDATE labels SET name = 'archived' WHERE name = 'hideInAutocomplete' \ No newline at end of file diff --git a/src/public/javascripts/entities/note_short.js b/src/public/javascripts/entities/note_short.js index c1a3f74c0..5167b3698 100644 --- a/src/public/javascripts/entities/note_short.js +++ b/src/public/javascripts/entities/note_short.js @@ -6,7 +6,7 @@ class NoteShort { this.isProtected = row.isProtected; this.type = row.type; this.mime = row.mime; - this.hideInAutocomplete = row.hideInAutocomplete; + this.archived = row.archived; } isJson() { @@ -59,7 +59,7 @@ class NoteShort { get dto() { const dto = Object.assign({}, this); delete dto.treeCache; - delete dto.hideInAutocomplete; + delete dto.archived; return dto; } diff --git a/src/scripts/Reddit Importer.tar b/src/scripts/Reddit Importer.tar index 80308b24c168500c64905acd6debf67fdbf33fc0..08cbe2f2635deb52bd9d0a0c807cda38bdd62646 100644 GIT binary patch delta 29 kcmZn&`4+sPNr)%0C^;juEH%YSK}l)y1X1zL>xBZv0j#46eE