Commit Graph

132 Commits

Author SHA1 Message Date
José Varela
acc145006c App: encode primary key (#5143)
* app: encode primary key
Since primary keys could be manually entered strings,
we should encode those in order to prevent accessing
inexistent routes.
E.g.
Document with primary key: 'clients/John Doe'

* fixup! app: encode primary key Since primary keys could be manually entered strings, we should encode those in order to prevent accessing inexistent routes. E.g. Document with primary key: 'clients/John Doe'

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-04-19 11:35:01 -04:00
Rijk van Zanten
40b9fb0fe6 Allow disabling activity/revisions (#5112)
* Add accountability column

* Add field info for accountability

* Add accountability to collection type

* Fetch accountability info from collection meta

* Add field name translation for accountability field

* Hide revisions drawer detail if revisions aren't available

* Only save activity where accountability flag matches

* Disable revisions for directus_presets

Fixes #3767

* Tweak field option naming
2021-04-16 16:26:18 -04:00
Nitwel
c7f2b05c00 Fix drawer item title not showing data (#4940)
* fix drawer item title not showing data

* load template items relational

* Only render preview on first load

* Fix type issue

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 18:05:41 -04:00
Nitwel
44091e6f41 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>
2021-04-09 17:24:40 -04:00
Nitwel
78b8653369 Make collection list searchable (#4780)
* add searchability to collections

* restyle and make collection search persistent

* increase min collection

* hide whole search

* Style tweaks

* More style tweaks

* Rename collections navigation search

* Remove unused prop

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-09 14:55:08 -04:00
Nitwel
3905157258 keep bookmark on detail (#4860) 2021-04-09 12:39:52 -04:00
rijkvanzanten
48f2653406 Fix type issue 2021-04-08 17:22:22 -04:00
Nitwel
93f8b7720c Fix translations not working on displays, modules... (#4734)
* generalyze extensions

* replace vue-i18n tranlslations

* replace vue-i18n tranlslations

* add missing commas

* replace translations recursive

* restructure translate

* remove unused i18n

* remove unused i18n

* remove unused i18n

* Remove i18n context in define

* Rename translate util file

* Fix type errors

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:36:55 -04:00
Nitwel
534c207c48 Render Template load relational data (#4852)
* remove non existing fields

* show relational template on items

* make relational loading cleaner

* Move item templateValues fetching to item detail

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-04-08 16:04:31 -04:00
Nitwel
6f9b2cafcd Add page titles (#4775)
* restructure template rendering

* add useTitle composable

* Split up render-string-template from getFieldsFromTemplate

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-03-31 10:53:57 -04:00
Nitwel
70b15eef46 fix discard not closing on singleton (#4727) 2021-03-29 10:13:00 -04:00
Rijk van Zanten
be611a03f9 Change revert action to insert changes into page (#4637)
Closes #3941
2021-03-23 11:59:00 -04:00
Ben Haynes
7599e0a7aa primary color and various design updates 2021-03-04 18:50:47 -05:00
rijkvanzanten
301d5a3337 Add "show hidden collections" context menu
Closes #3310
2021-02-22 19:49:53 -05:00
Nitwel
2ee639964c Show prompt when having unsaved changes (#4174)
* show prompt when having unsaved changes

* alert also for users and files
2021-02-19 14:51:53 -05:00
rijkvanzanten
07ea3870ba Fix revisions permissions check for admin users
Fixes #4114
2021-02-17 10:32:49 -05:00
rijkvanzanten
5aad79dc5a Navigate away from bookmark on bookmark delete
Fixes #3766
2021-02-16 16:58:41 -05:00
YannickMol
927042189c Remove dots when disabled (#4075)
* Remove dots when disabled

Fixes #4038

* Revert "Remove dots when disabled"

This reverts commit 2276023471.

* Update save-options

Fixes #4038

* Remove dots in files and users routes

* Remove :disabled tags
2021-02-16 14:07:09 -05:00
Nitwel
e1b353b38b fix translation of module names (#4057) 2021-02-15 11:32:36 -05:00
Rijk van Zanten
81fc8443df Don't wrap text in nav (#4035)
* Move v-list-item-text to v-text-overflow, use in tables

* Fix type issue
2021-02-12 16:39:17 -05:00
Rijk van Zanten
1064d10296 Fix file imports now that vetur supports monorepos (#4016) 2021-02-11 13:08:59 -05:00
Rijk van Zanten
b7d87e581a System permissions for app access (#4004)
* Pass relations through schema, instead of individual reads

* Fetch field transforms upfront

* Fix length check

* List if user has app access or not in accountability

* Load permissions up front, merge app access minimal permissions

* Show app access required permissions in permissions overview

* Show system minimal permissions in permissions detail

* Fix app access check in authenticate for jwt use

* Fix minimal permissions for presets

* Remove /permissions/me in favor of root use w/ permissions

* Fix logical nested OR in an AND

* Use root permissions endpoint with filter instead of /me

* Allow filter query on /permissions

* Add system minimal app access permissions into result of /permissions

* Remove stray console log

* Remove stray console.dir

* Set current role as role for minimal permissions

* Fix no-permissions state for user detail

* Add filter items function that allows altering existing result set
2021-02-11 12:50:56 -05:00
rijkvanzanten
3103d9d7ea Fix archive button on collection module collection overview
Fixes #3826
2021-01-29 18:39:01 -05:00
Rijk van Zanten
5d96529341 Don't navigate on save as copy on validation error (#3854)
Fixes #3430
2021-01-29 18:04:22 -05:00
Peter Stuifzand
734f39e155 Fix typo for batchEditAllowed -> batchArchiveAllowed 2021-01-28 22:57:12 +01:00
rijkvanzanten
e547a72693 Use correct permissions in drawer-item
Fixes #3811
2021-01-28 16:48:51 -05:00
Nicola Krumschmidt
4bfbc2ba9f Prevent add/edit dialogs from saving if value is null 2021-01-26 13:14:32 +01:00
Ben Haynes
55b0ae581d fix plural title 2021-01-14 21:18:07 -05:00
Jakob-em
efce49930a Add missing tooltips
- create bookmark
- delete filter
- change operator
- table sort icons
2020-12-29 21:48:09 +01:00
rijkvanzanten
becba663b4 Start groups open when start open
Fixes #3397
2020-12-11 18:15:56 -05:00
rijkvanzanten
ec9ce55720 Use batch drawer for users / files
Fixes #985
2020-11-13 12:03:22 -05:00
rijkvanzanten
49f261f990 Show revisions/comments on singletons
Fixes #978
2020-11-13 10:34:35 -05:00
rijkvanzanten
ef901218a5 Don't navigate on save error 2020-11-11 15:57:32 -05:00
rijkvanzanten
e3af581e8e Don't navigate on delete with error
Fixes #947
2020-11-11 13:41:57 -05:00
rijkvanzanten
32db7ae505 Persist collections nav group state
Fixes #929
2020-11-11 11:41:54 -05:00
rijkvanzanten
dd803a915b Fix archive button permissions check
Fixes #900
2020-11-06 14:57:44 -05:00
rijkvanzanten
94c03b4d4a Use new error handler where we don't handle errors better 2020-11-05 17:24:27 -05:00
rijkvanzanten
4130337f7a Merge branch 'main' into error-handling 2020-11-05 16:16:44 -05:00
rijkvanzanten
d6cf3eb30d Update batch archive to use new update flow 2020-11-05 15:57:02 -05:00
rijkvanzanten
8dbfd34862 Update batch style to drawer 2020-11-05 15:39:07 -05:00
rijkvanzanten
9471bc1c95 Start on new batch operations 2020-11-05 14:21:10 -05:00
rijkvanzanten
2091a2665d Use settings structure in collections overview
Fixes #874
2020-11-04 15:38:02 -05:00
rijkvanzanten
39144a83a1 Override default value with preset in app
Fixes #825
2020-11-04 12:22:20 -05:00
rijkvanzanten
f1289a66dc Use csv of strings for permissions fields 2020-11-04 11:31:04 -05:00
rijkvanzanten
38c2e239bf Fix isSavable check on item page
Fixes #846
2020-11-03 16:22:01 -05:00
rijkvanzanten
6e4159e47b Check for current user/role in app side permissions check
Fixes #817
2020-11-02 16:56:45 -05:00
rijkvanzanten
39e70db7db Fix note not showing up on collection overview
Fixes #816
2020-10-30 09:52:28 -04:00
rijkvanzanten
ca297dda3a Check for default values 2020-10-26 11:14:35 +01:00
rijkvanzanten
84939b4d54 Merge branch 'main' into save-new-fix 2020-10-26 10:47:35 +01:00
Nitwel
c8653589b1 Merge branch 'main' into error-handling 2020-10-24 11:21:33 +02:00