Skip to content

Commit

Permalink
Add saving of properties
Browse files Browse the repository at this point in the history
  • Loading branch information
yrucrem committed Nov 15, 2023
1 parent a74a664 commit b1ad559
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 459 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
import static com.gentics.contentnode.etc.Feature.ROLES;
import static com.gentics.contentnode.etc.Feature.SUSPEND_SCHEDULER;
import static com.gentics.contentnode.etc.Feature.TAG_IMAGE_RESIZER;
import static com.gentics.contentnode.etc.Feature.UPLOAD_FILE_PROPERTIES;
import static com.gentics.contentnode.etc.Feature.UPLOAD_IMAGE_PROPERTIES;
import static com.gentics.contentnode.etc.Feature.USERSNAP;
import static com.gentics.contentnode.etc.Feature.VIEW_PERMS;
import static com.gentics.contentnode.etc.Feature.WASTEBIN;
Expand All @@ -74,7 +76,8 @@ public class BasicFeatureService implements FeatureService {
MANAGELINKURL, MANAGELINKURL_ONLYFORPUBLISH, DSFALLBACK, DS_EMPTY_CS,
GET_FILENAME_AS_PAGENAME, FILENAME_FORCETOLOWER, LIVEEDIT_TAG_PERCONSTRUCT, LIVE_URLS, LIVE_URLS_PER_NODE,
VIEW_PERMS, DS_FOLDER_PERM, DS_FOLDER_WORKFLOW, HTML_IMPORT, CHANNELSYNC, CONSTRUCT_CATEGORIES, USERSNAP,
OBJTAG_SYNC, HIDE_MANUAL, ASSET_MANAGEMENT, FOLDER_BASED_TEMPLATE_SELECTION);
OBJTAG_SYNC, HIDE_MANUAL, ASSET_MANAGEMENT, FOLDER_BASED_TEMPLATE_SELECTION, UPLOAD_FILE_PROPERTIES,
UPLOAD_IMAGE_PROPERTIES);

@Override
public boolean isProvided(Feature feature) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,15 @@ public enum NodeFeature {
/**
* With this feature, the node has additional asset management enabled (which must be configured)
*/
asset_management
asset_management,

/**
* With this feature, the properties editor will immediately open upon uploading a new file.
*/
upload_file_properties,

/**
* With this feature, the properties editor will immediately open upon uploading a new image.
*/
upload_image_properties
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h2 class="item-properties-heading">{{ 'editor.general_properties_label' | i18n

<properties-editor
*ngIf="(itemProperties$ | async) as itemProps"
[item]="itemProps.item"
[item]="item"
[nodeId]="currentNode?.id"
[templates]="itemProps.templates"
[languages]="itemProps.languages">
Expand Down
Loading

0 comments on commit b1ad559

Please sign in to comment.