Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #131 from atrocore/asset-metadata
Browse files Browse the repository at this point in the history
Refresh Asset Metadata panel after asset changed
  • Loading branch information
rratsun authored Jan 15, 2024
2 parents 363d12c + 9035ee2 commit bcfbc5a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Resources/metadata/clientDefs/Asset.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
}
},
"assetMetadata": {
"view": "dam:views/asset/record/panels/asset-metadata",
"create": false,
"select": false,
"rowActionsView": "views/record/row-actions/empty"
Expand Down
24 changes: 24 additions & 0 deletions client/modules/dam/src/views/asset/record/panels/asset-metadata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* AtroCore Software
*
* This source file is available under GNU General Public License version 3 (GPLv3).
* Full copyright and license information is available in LICENSE.txt, located in the root directory.
*
* @copyright Copyright (c) AtroCore UG (https://www.atrocore.com)
* @license GPLv3 (https://www.gnu.org/licenses/)
*/

Espo.define('dam:views/asset/record/panels/asset-metadata', 'views/record/panels/relationship',
Dep => Dep.extend({

setup() {
Dep.prototype.setup.call(this);

this.listenTo(this.model, 'after:save', () => {
if (this.model.get('fileId')) {
this.actionRefresh();
}
})
}
})
);

0 comments on commit bcfbc5a

Please sign in to comment.