Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

MUMUP-2431 Trap exclusive mode error and display message. #425

Merged
merged 5 commits into from
Mar 17, 2016

Conversation

Doug-Reed
Copy link
Contributor

Server-side error was bypassing client-side failure function. Moved the $http.get(...) function to it's own method, and test the results of that.

var returnMe=-1;
var data = attemptExclusiveCall(portlet, returnMe);
if(returnMe===-1){
portlet.exclusiveContent="<font color=\"red\">An error occured retrieving your data. This service is unavailable at this time.</font>";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keirserrie @jjones770 - wanna take a gander at this?

@vertein
Copy link
Contributor

vertein commented Mar 10, 2016

A handy screenshot would help me visualize the error html

var getExclusiveMarkup = function(portlet) {

var returnMe=-1;
var data = attemptExclusiveCall(portlet, returnMe);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we may have to chat about promises. Hit me up when you have a moment.

@Doug-Reed
Copy link
Contributor Author

This is how it looks with the dummy text.

dummy error message

@Doug-Reed
Copy link
Contributor Author

Refactored the change to put it all back under one function, per @timlevett.

@Doug-Reed
Copy link
Contributor Author

revised error message

@Doug-Reed
Copy link
Contributor Author

@keirserrie Jess : Ok? See above.

@Doug-Reed
Copy link
Contributor Author

@timlevett : What do you want to do to the style?

@timlevett
Copy link
Contributor

Talked in chat, just reiterating:

http://getbootstrap.com/components/#alerts would be preferred for this.

<div class="alert alert-danger" role="alert">...</div>

@Doug-Reed
Copy link
Contributor Author

bootstrapped exclusive error

@vertein
Copy link
Contributor

vertein commented Mar 17, 2016

👍

Doug-Reed added a commit that referenced this pull request Mar 17, 2016
MUMUP-2431 Trap exclusive mode error and display message.
@Doug-Reed Doug-Reed merged commit 769d36b into master Mar 17, 2016
@timlevett timlevett deleted the exclusiveErr branch March 17, 2016 15:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants