Skip to content

Commit

Permalink
added tooltip to display on imposter list
Browse files Browse the repository at this point in the history
  • Loading branch information
donhenton authored and Donaby Henton committed Sep 8, 2017
1 parent 4fa11ec commit 9363941
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,43 @@
"documentation": "demonstrates decorating the body via code"
}
]
},
{
"port": "5454",
"id": 3,
"description": "CORS DEMO",
"imposters": [
{
"responses": [
{
"status": 200,
"injection": {
"use": false,
"body": ""
},
"headers": [],
"body": "",
"decorate": ""
}
],
"match": {
"path_match": {
"type": "equals",
"value": "path"
},
"injection": {
"use": false,
"body": ""
},
"verb": "GET",
"headers": [],
"query_params": [],
"body_match": {
"type": "equals",
"body": ""
}
}
}
]
}
]
4 changes: 3 additions & 1 deletion public_html/mountebank-UI/app/app.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
angular.module('myApp', ['app.routes','ui.bootstrap','app.services','app.constants','ui.sortable']);
angular.module('myApp', ['app.routes','ui.bootstrap','app.services','app.constants','ui.sortable']);

//https://angular-ui.github.io/bootstrap/
2 changes: 1 addition & 1 deletion public_html/mountebank-UI/sections/home/home.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h3>Imposters</h3>



<button class="btn btn-sm btn-primary pull-right"
<button uib-tooltip={{item.documentation}} tooltip-placement="auto top" class="btn btn-sm btn-primary pull-right"
style="margin: 5px"
ng-click="home.changeImposter($index)" id="imposter_{{$index}}">
<i ng-hide="$index != home.currentImposterIdx" class="glyphicon glyphicon-arrow-right"></i> {{home.composeImposterAlias($index)}}</button>
Expand Down

0 comments on commit 9363941

Please sign in to comment.