This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from atrocore/asset-metadata
Refresh Asset Metadata panel after asset changed
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
client/modules/dam/src/views/asset/record/panels/asset-metadata.js
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,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(); | ||
} | ||
}) | ||
} | ||
}) | ||
); |