 
     super options, data
 
-    @credentials = []
+    { @credentials } = (@getOption 'stackTemplate') or {}
+    @credentials   or= []
 
     # Waiting state view
     @waitingView = new kd.View

      placement : 'below'


  getPublicKeys: ->
    (cred.publicKey for cred in @credentials)


  pistachio: ->
    """
      {{> @waitingView}}

      click      : =>

        modal = new CredentialSelectorModal {
          selectedCredentials: @credentials
        }

        modal.on 'ItemSelected', (credential) =>
