-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add icon & color to bookmarks * update current bookmark title on edit * clean up edit bookmark dialog on cancel * remove unused bookmark-edit component * interaction improvements * sort based on scope and alphabetically * prevent hover when locked & use tooltip * Reduce size of right hand icon in bookmark Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
- Loading branch information
1 parent
a58f091
commit 31cfb82
Showing
12 changed files
with
222 additions
and
144 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
api/src/database/migrations/20220308A-add-bookmark-icon-and-color.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Knex } from 'knex'; | ||
|
||
export async function up(knex: Knex): Promise<void> { | ||
await knex.schema.alterTable('directus_presets', (table) => { | ||
table.string('icon', 30).notNullable().defaultTo('bookmark_outline'); | ||
table.string('color').nullable(); | ||
}); | ||
} | ||
|
||
export async function down(knex: Knex): Promise<void> { | ||
await knex.schema.alterTable('directus_presets', (table) => { | ||
table.dropColumn('icon'); | ||
table.dropColumn('color'); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.