|  | @@ -46,7 +46,14 @@
 | 
											
												
													
														|  |                          </td>
 |  |                          </td>
 | 
											
												
													
														|  |                          <td>{{material.name}}</td>
 |  |                          <td>{{material.name}}</td>
 | 
											
												
													
														|  |                          <td><b-checkbox v-model="material.isPlot"/></td>
 |  |                          <td><b-checkbox v-model="material.isPlot"/></td>
 | 
											
												
													
														|  | -                        <td>{{material.fname}}</td>
 |  | 
 | 
											
												
													
														|  | 
 |  | +                        <td>{{material.fname}}
 | 
											
												
													
														|  | 
 |  | +                            <span class="rh-input">
 | 
											
												
													
														|  | 
 |  | +                                <b-button @click="deleteMaterial(material.fname);" class="is-danger is-small is-outlined">
 | 
											
												
													
														|  | 
 |  | +                                    <font-awesome-icon icon="trash"/>
 | 
											
												
													
														|  | 
 |  | +                                </b-button>
 | 
											
												
													
														|  | 
 |  | +                                <span class="tooltiptext tip-danger">Delete.</span>
 | 
											
												
													
														|  | 
 |  | +                            </span>
 | 
											
												
													
														|  | 
 |  | +                        </td>
 | 
											
												
													
														|  |                      </tr>
 |  |                      </tr>
 | 
											
												
													
														|  |                  </table>
 |  |                  </table>
 | 
											
												
													
														|  |                  <div class="chart-container">
 |  |                  <div class="chart-container">
 | 
											
										
											
												
													
														|  | @@ -85,8 +92,7 @@
 | 
											
												
													
														|  |                      layout: {
 |  |                      layout: {
 | 
											
												
													
														|  |                          // title: 'reactive charts',
 |  |                          // title: 'reactive charts',
 | 
											
												
													
														|  |                          xaxis: {
 |  |                          xaxis: {
 | 
											
												
													
														|  | -                            // will be set on mount
 |  | 
 | 
											
												
													
														|  | -                            title: ''
 |  | 
 | 
											
												
													
														|  | 
 |  | +                            title: 'Wavelength, mkm'
 | 
											
												
													
														|  |                          },
 |  |                          },
 | 
											
												
													
														|  |                          yaxis: {
 |  |                          yaxis: {
 | 
											
												
													
														|  |                              title: 'refractive index'
 |  |                              title: 'refractive index'
 | 
											
										
											
												
													
														|  | @@ -160,6 +166,13 @@
 | 
											
												
													
														|  |              sortMaterials() {
 |  |              sortMaterials() {
 | 
											
												
													
														|  |                  this.materials.sort((a,b) => (a.name > b.name) ? 1 : ((b.name > a.name) ? -1 : 0));
 |  |                  this.materials.sort((a,b) => (a.name > b.name) ? 1 : ((b.name > a.name) ? -1 : 0));
 | 
											
												
													
														|  |              },
 |  |              },
 | 
											
												
													
														|  | 
 |  | +            deleteMaterial(fname) {
 | 
											
												
													
														|  | 
 |  | +                for (let i = 0; i < this.materials.length; i++) {
 | 
											
												
													
														|  | 
 |  | +                    if (this.materials[i].fname == fname) {
 | 
											
												
													
														|  | 
 |  | +                        this.materials.splice(i);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +            },
 | 
											
												
													
														|  |              async loadMaterial(material) {
 |  |              async loadMaterial(material) {
 | 
											
												
													
														|  |                  const data_nk = await this.loadMaterialData(material.fname);
 |  |                  const data_nk = await this.loadMaterialData(material.fname);
 | 
											
												
													
														|  |                  material.data_nk = data_nk;
 |  |                  material.data_nk = data_nk;
 |