Просмотр исходного кода

Fixed playlist pane not showing after modal removal change

Torkel Ödegaard 11 лет назад
Родитель
Сommit
20607c00b1
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      src/app/directives/dashEditLink.js
  2. 1 1
      src/app/partials/search.html

+ 2 - 1
src/app/directives/dashEditLink.js

@@ -15,7 +15,8 @@ function (angular, $) {
 
           elem.bind('click',function() {
             $timeout(function() {
-              scope.emitAppEvent('show-dash-editor', { src: partial, scope: scope });
+              var editorScope = attrs.editorScope === 'isolated' ? null : scope;
+              scope.emitAppEvent('show-dash-editor', { src: partial, scope: editorScope });
             });
           });
         }

+ 1 - 1
src/app/partials/search.html

@@ -20,7 +20,7 @@
 
 			<div class="grafana-search-panel">
 				<div class="search-field-wrapper">
-					<button class="btn btn-success pull-right" dash-editor-link="app/partials/playlist.html">
+					<button class="btn btn-success pull-right" dash-editor-link="app/partials/playlist.html" editor-scope="isolated">
 						<i class="icon-play"></i>
 						Playlist
 					</button>