update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b third try
[osm/UI.git] / skyquake / plugins / composer / src / src / components / messages.js
1
2 /*
3 *
4 * Copyright 2016 RIFT.IO Inc
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19 /**
20 * Created by onvelocity on 8/20/15.
21 */
22 'use strict';
23
24 import React from 'react'
25
26 import imgOnboard from '../../../node_modules/open-iconic/svg/cloud-upload.svg'
27
28 const message = {
29 detailsWelcome() {
30 return <p className="welcome-message">Select an object to view details.</p>;
31 },
32 canvasWelcome(isValid) {
33 return (
34 <span>
35 <p className="welcome-message">Double-click a Descriptor to open.</p>
36 {isValid ? <p className="welcome-message">Or drag a Descriptor to add to Canvas.</p> : null}
37 </span>
38 );
39 },
40 get showMoreTitle() {
41 return 'Show More';
42 },
43 get showLessTitle() {
44 return 'Show Less';
45 },
46 catalogWelcome(isValid) {
47 return isValid ? <p className="welcome-message">To onboard a descriptor, drag the package to the catalog or click the Onboard button (<img style={{width: '20px'}} src={imgOnboard} />) to select the package.</p> : <p className="welcome-message"> No descriptors have been onboarded</p> ;
48 },
49 getSaveActionLabel(isNew) {
50 return isNew ? 'Onboard' : 'Update';
51 }
52 };
53
54 export default message;