Merge pull request #2918 from pengpengshui/master

fix  #2896 #2886 #2888 about tooltips,inline alert ,datagrid leftside…
This commit is contained in:
Steven Zou 2017-07-31 14:33:42 +08:00 committed by GitHub
commit aabfc9de6b
2 changed files with 19 additions and 4 deletions

View File

@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core';
import {Component, OnInit, ViewChild, OnDestroy, ChangeDetectorRef, ChangeDetectionStrategy} from '@angular/core';
import { Router } from '@angular/router';
@ -43,7 +43,8 @@ import { StatisticHandler } from '../shared/statictics/statistic-handler.service
@Component({
selector: 'project',
templateUrl: 'project.component.html',
styleUrls: ['./project.component.css']
styleUrls: ['./project.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ProjectComponent implements OnInit, OnDestroy {
@ -68,7 +69,8 @@ export class ProjectComponent implements OnInit, OnDestroy {
private appConfigService: AppConfigService,
private sessionService: SessionService,
private deletionDialogService: ConfirmationDialogService,
private statisticHandler: StatisticHandler) {
private statisticHandler: StatisticHandler,
private ref: ChangeDetectorRef) {
this.subscription = deletionDialogService.confirmationConfirm$.subscribe(message => {
if (message &&
message.state === ConfirmationState.CONFIRMED &&
@ -136,6 +138,8 @@ export class ProjectComponent implements OnInit, OnDestroy {
this.messageHandlerService.handleError(error);
}
);
let hnd = setInterval(()=>this.ref.markForCheck(), 100);
setTimeout(()=>clearInterval(hnd), 2000);
}
openModal(): void {

View File

@ -28,4 +28,15 @@
align-items: center;
overflow-y: auto;
overflow-x: hidden;
}
}
.tooltip-content{white-space: normal;word-wrap: break-word;}
.alert.alert-warning{
padding:10px 12px;
}
.alert-warning .alert-actions button{
margin: -2px 0 0px 0;
}
.modal-header{
padding: 0;
}