Add option to auto refresh collections (#4777)

* add auto refresh

* add refresh_interval to DB

* remove refresh_interval template

* set refresh interval default to null

* Fix typo in filename

* Rename sidebar-auto-refresh to refresh-sidebar-detail

* Rename import

* Add badge on active refresh, change options

* Fix refresh not working on refresh

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
Nitwel
2021-04-09 23:24:40 +02:00
committed by GitHub
parent 52ee17dc33
commit 44091e6f41
10 changed files with 156 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
import { Knex } from 'knex';
export async function up(knex: Knex) {
await knex.schema.alterTable('directus_presets', (table) => {
table.integer('refresh_interval');
});
}
export async function down(knex: Knex) {
await knex.schema.alterTable('directus_presets', (table) => {
table.dropColumn('refresh_interval');
});
}