Github user garrensmith commented on a diff in the pull request:

    https://github.com/apache/couchdb-fauxton/pull/362#discussion_r28761814
  
    --- Diff: app/addons/documents/mango/mango.actions.js ---
    @@ -41,18 +55,54 @@ function (app, FauxtonAPI, Documents, ActionTypes, 
Stores, IndexResultsActions)
           });
     
           mangoIndex.save().then(function (res) {
    -        var msg = res.result === 'created' ? 'Index created' : 'Index 
already exits',
    -            url = FauxtonAPI.urls('mango', 'index-app', 
options.database.safeID());
    +        var msg = res.result === 'created' ? 'Index created.' : 'Index 
already exits.',
    +            url = FauxtonAPI.urls('mango', 'query-app', 
options.database.safeID());
     
             FauxtonAPI.addNotification({
    -          msg:  msg,
    +          msg:  msg + ' Redirect to search...',
               type: 'success',
               clear: true
             });
     
    -        IndexResultsActions.reloadResultsList();
    +        FauxtonAPI.dispatch({
    +          type: ActionTypes.MANGO_NEW_QUERY_FIND_CODE_FROM_FIELDS,
    +          options: {
    +            fields: queryCode.index.fields
    +          }
    +        });
    +
    +        window.setTimeout(function () {
    +          FauxtonAPI.navigate(url);
    +          FauxtonAPI.addNotification({
    +            msg:  'Feel free to search now.',
    --- End diff --
    
    Maybe we should say something like `Index is ready for querying` or `Index 
is ready` or something like that. I'm not sure `Feel free to search now.` is 
the correct tone.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to