()
| 153 | } |
| 154 | |
| 155 | buildActions () { |
| 156 | if (!this.isFullyLoaded()) { return null } |
| 157 | this.actions = $.extend(true, {}, this.get('actions')) |
| 158 | for (const name in this.actions) { |
| 159 | const action = this.actions[name] |
| 160 | action.name = name |
| 161 | const object = action.relatedActions != null ? action.relatedActions : {} |
| 162 | for (const relatedName in object) { |
| 163 | const relatedAction = object[relatedName] |
| 164 | relatedAction.name = action.name + '_' + relatedName |
| 165 | this.actions[relatedAction.name] = relatedAction |
| 166 | } |
| 167 | } |
| 168 | return this.actions |
| 169 | } |
| 170 | |
| 171 | fillOptions (options) { |
| 172 | if (options == null) { options = {} } |
no test coverage detected