code7-leia 0.1.170 → 0.1.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,6 +72,10 @@ declare type Toast = {
72
72
  title: String;
73
73
  description: String;
74
74
  };
75
+ success: {
76
+ title: String;
77
+ description: String;
78
+ };
75
79
  };
76
80
  };
77
81
  export declare type Language = {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.170",
2
+ "version": "0.1.172",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -153,12 +153,12 @@ export const FileArea = () => {
153
153
  ) : <Table>
154
154
  <thead>
155
155
  <tr>
156
- <th key="th_file_name" className="th_status">
157
- {t.fileArea.status}
158
- </th>
159
156
  <th key="th_file_name" className="th_file_name">
160
157
  {t.fileArea.fileName}
161
158
  </th>
159
+ <th key="th_file_name" className="th_status">
160
+ {t.fileArea.status}
161
+ </th>
162
162
  <th key="th_pressets" className="th_pressets">
163
163
  {t.fileArea.presset}
164
164
  </th>
@@ -171,8 +171,8 @@ export const FileArea = () => {
171
171
  <tbody>
172
172
  {files.map((object) => (
173
173
  <tr>
174
- <td>{object.trained ? <FaCheck size={14} style={{ color: 'green' }} /> : ''}</td>
175
174
  <td>{object.name}</td>
175
+ <td>{object.trained ? <FaCheck size={14} style={{ color: 'green' }} /> : <TiDelete size={14} style={{ color: 'red' }} />}</td>
176
176
  <td className='tags' dangerouslySetInnerHTML={{ __html: pressetTag(object.tags) }} />
177
177
  <td>
178
178
  <div className='divDelete'>
@@ -74,6 +74,10 @@ type Toast = {
74
74
  fail: {
75
75
  title: String,
76
76
  description: String
77
+ },
78
+ success: {
79
+ title: String,
80
+ description: String
77
81
  }
78
82
  }
79
83
  }
@@ -96,6 +96,7 @@ export function* TrainingSaga(action: any) {
96
96
 
97
97
  const { data } = yield call(api.get, `/training/${id}`);
98
98
  yield put(uploadFilesActionSuccess({ files: data.files }));
99
+ toast.success({title: t.toast.Train.fail.title, description: t.toast.Train.fail.description});
99
100
  } catch (error) {
100
101
  toast.error({title: t.toast.Train.fail.title, description: t.toast.Train.fail.description});
101
102
  console.log('-----------TrainingSaga.error------------------->', error);
@@ -76,6 +76,10 @@ export const enTranslation: Language = {
76
76
  fail: {
77
77
  title: 'Failure',
78
78
  description: 'Error training Le-IA'
79
+ },
80
+ success: {
81
+ title: 'Success',
82
+ description: 'Le-IA is in the training process!'
79
83
  }
80
84
  }
81
85
  }
@@ -76,6 +76,10 @@ export const esTranslation: Language = {
76
76
  fail: {
77
77
  title: 'Error',
78
78
  description: 'Error al entrenar Le-IA'
79
+ },
80
+ success: {
81
+ title: 'Éxito',
82
+ description: '¡Le-IA está en proceso de entrenamiento!'
79
83
  }
80
84
  }
81
85
  }
@@ -76,6 +76,10 @@ export const ptTranslation: Language = {
76
76
  fail: {
77
77
  title: 'Falha',
78
78
  description: 'Erro ao treinar a Le-IA'
79
+ },
80
+ success: {
81
+ title: 'Sucesso',
82
+ description: 'A Le-IA está em processo de treinamento!'
79
83
  }
80
84
  }
81
85
  }