Bladeren bron

resolves commandId and layout on showModal

yogevbd 6 jaren geleden
bovenliggende
commit
f6728fc1d6
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3
    1
      lib/src/commands/Commands.ts

+ 3
- 1
lib/src/commands/Commands.ts Bestand weergeven

59
     const commandId = this.uniqueIdProvider.generate('showModal');
59
     const commandId = this.uniqueIdProvider.generate('showModal');
60
     const result = this.nativeCommandsSender.showModal(commandId, layout);
60
     const result = this.nativeCommandsSender.showModal(commandId, layout);
61
     this.commandsObserver.notify('showModal', { commandId, layout });
61
     this.commandsObserver.notify('showModal', { commandId, layout });
62
-    return result;
62
+    return result.then(() => {
63
+      return {commandId, layout};
64
+    });
63
   }
65
   }
64
 
66
 
65
   public dismissModal(componentId) {
67
   public dismissModal(componentId) {